package com.jerem.gwt.bredgolf.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class GolfParcoursDTO {
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key id;
	
	@Persistent
	private GolfClubDTO golfClub;
	@Persistent
	private String couleur;
	@Persistent
	private float slope;
	@Persistent
	private float SSS;
	@Persistent
	private int[] tabDistance;
	@Persistent
	private int[] tabPar;
	@Persistent
	private int[] tabHcp;

	public GolfParcoursDTO() {
	}

	public GolfParcoursDTO(GolfClubDTO golfClub, String couleur, float slope,
			            float sss, int[] tabDistance, int[] tabPar, int[] tabHcp) {
		super();
		this.golfClub = golfClub;
		this.couleur = couleur;
		this.slope = slope;
		this.SSS = sss;
		this.tabDistance = tabDistance;
		this.tabPar = tabPar;
		this.tabHcp = tabHcp;
	}


	public String getCouleur() {
		return couleur;
	}

	public void setCouleur(String couleur) {
		this.couleur = couleur;
	}

	public float getSlope() {
		return slope;
	}

	public void setSlope(float slope) {
		this.slope = slope;
	}

	public float getSSS() {
		return SSS;
	}

	public void setSSS(float sss) {
		SSS = sss;
	}

	public int[] getTabDistance() {
		return tabDistance;
	}

	public void setTabDistance(int[] tabDistance) {
		this.tabDistance = tabDistance;
	}

	public int[] getTabHcp() {
		return tabHcp;
	}

	public void setTabHcp(int[] tabHcp) {
		this.tabHcp = tabHcp;
	}

	public Key getId() {
		return id;
	}

	public void setGolfClub(GolfClubDTO golfClub) {
		this.golfClub = golfClub;
	}

	public GolfClubDTO getGolfClub() {
		return golfClub;
	}

	public int[] getTabPar() {
		return tabPar;
	}

	public void setTabPar(int[] tabPar) {
		this.tabPar = tabPar;
	}
	
}